﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Classes {

    public class Prop extends Decoration {

        private const PROP:String = "prop";

        protected var m_playActionCallback:Function;

        public function Prop(_arg1:String=null){
            super(_arg1);
            setState(STATE_STATIC);
            m_typeName = this.PROP;
        }
        public function setPlayActionCallback(_arg1:Function):void{
            this.m_playActionCallback = _arg1;
        }
        override public function isSellable():Boolean{
            return (false);
        }
        override public function onPlayAction():void{
            super.onPlayAction();
            if (this.m_playActionCallback != null){
                this.m_playActionCallback();
            };
        }
        override public function canBeDragged():Boolean{
            return (false);
        }
        override public function setHighlighted(_arg1:Boolean, _arg2:uint=16755200):void{
            if (!Global.world.isEditMode){
                super.setHighlighted(_arg1, _arg2);
            };
        }
        override public function showObjectBusy():void{
        }

    }
}//package Classes 
